{"ast":null,"code":"import { useRef, useEffect } from 'react';\nexport var defaultProps = {\n  className: '',\n  percent: 0,\n  prefixCls: 'rc-progress',\n  strokeColor: '#2db7f5',\n  strokeLinecap: 'round',\n  strokeWidth: 1,\n  style: {},\n  trailColor: '#D9D9D9',\n  trailWidth: 1,\n  gapPosition: 'bottom'\n};\nexport var useTransitionDuration = function useTransitionDuration() {\n  var pathsRef = useRef([]);\n  var prevTimeStamp = useRef(null);\n  useEffect(function () {\n    var now = Date.now();\n    var updated = false;\n    pathsRef.current.forEach(function (path) {\n      if (!path) {\n        return;\n      }\n      updated = true;\n      var pathStyle = path.style;\n      pathStyle.transitionDuration = '.3s, .3s, .3s, .06s';\n      if (prevTimeStamp.current && now - prevTimeStamp.current < 100) {\n        pathStyle.transitionDuration = '0s, 0s';\n      }\n    });\n    if (updated) {\n      prevTimeStamp.current = Date.now();\n    }\n  });\n  return pathsRef.current;\n};","map":{"version":3,"names":["useRef","useEffect","defaultProps","className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","gapPosition","useTransitionDuration","pathsRef","prevTimeStamp","now","Date","updated","current","forEach","path","pathStyle","transitionDuration"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/rc-progress/es/common.js"],"sourcesContent":["import { useRef, useEffect } from 'react';\nexport var defaultProps = {\n  className: '',\n  percent: 0,\n  prefixCls: 'rc-progress',\n  strokeColor: '#2db7f5',\n  strokeLinecap: 'round',\n  strokeWidth: 1,\n  style: {},\n  trailColor: '#D9D9D9',\n  trailWidth: 1,\n  gapPosition: 'bottom'\n};\nexport var useTransitionDuration = function useTransitionDuration() {\n  var pathsRef = useRef([]);\n  var prevTimeStamp = useRef(null);\n  useEffect(function () {\n    var now = Date.now();\n    var updated = false;\n    pathsRef.current.forEach(function (path) {\n      if (!path) {\n        return;\n      }\n      updated = true;\n      var pathStyle = path.style;\n      pathStyle.transitionDuration = '.3s, .3s, .3s, .06s';\n      if (prevTimeStamp.current && now - prevTimeStamp.current < 100) {\n        pathStyle.transitionDuration = '0s, 0s';\n      }\n    });\n    if (updated) {\n      prevTimeStamp.current = Date.now();\n    }\n  });\n  return pathsRef.current;\n};"],"mappings":"AAAA,SAASA,MAAM,EAAEC,SAAS,QAAQ,OAAO;AACzC,OAAO,IAAIC,YAAY,GAAG;EACxBC,SAAS,EAAE,EAAE;EACbC,OAAO,EAAE,CAAC;EACVC,SAAS,EAAE,aAAa;EACxBC,WAAW,EAAE,SAAS;EACtBC,aAAa,EAAE,OAAO;EACtBC,WAAW,EAAE,CAAC;EACdC,KAAK,EAAE,CAAC,CAAC;EACTC,UAAU,EAAE,SAAS;EACrBC,UAAU,EAAE,CAAC;EACbC,WAAW,EAAE;AACf,CAAC;AACD,OAAO,IAAIC,qBAAqB,GAAG,SAASA,qBAAqB,GAAG;EAClE,IAAIC,QAAQ,GAAGd,MAAM,CAAC,EAAE,CAAC;EACzB,IAAIe,aAAa,GAAGf,MAAM,CAAC,IAAI,CAAC;EAChCC,SAAS,CAAC,YAAY;IACpB,IAAIe,GAAG,GAAGC,IAAI,CAACD,GAAG,EAAE;IACpB,IAAIE,OAAO,GAAG,KAAK;IACnBJ,QAAQ,CAACK,OAAO,CAACC,OAAO,CAAC,UAAUC,IAAI,EAAE;MACvC,IAAI,CAACA,IAAI,EAAE;QACT;MACF;MACAH,OAAO,GAAG,IAAI;MACd,IAAII,SAAS,GAAGD,IAAI,CAACZ,KAAK;MAC1Ba,SAAS,CAACC,kBAAkB,GAAG,qBAAqB;MACpD,IAAIR,aAAa,CAACI,OAAO,IAAIH,GAAG,GAAGD,aAAa,CAACI,OAAO,GAAG,GAAG,EAAE;QAC9DG,SAAS,CAACC,kBAAkB,GAAG,QAAQ;MACzC;IACF,CAAC,CAAC;IACF,IAAIL,OAAO,EAAE;MACXH,aAAa,CAACI,OAAO,GAAGF,IAAI,CAACD,GAAG,EAAE;IACpC;EACF,CAAC,CAAC;EACF,OAAOF,QAAQ,CAACK,OAAO;AACzB,CAAC"},"metadata":{},"sourceType":"module"}